(cat "Do you wish to add the following commands to the file \"S:user-startup\" so that your system will be properly configured to use Sample-X?\n\n" #assign_sx)
)
(startup "Sample-X"
(prompt #assign_prompt)
(help "No help for this function")
(command #assign_sx)
)
; install xphantom driver
(set #install_mx
(askbool
(prompt "Do you wish to install the 'xphantom' driver?")
(help "This driver is needed to allow Music-X to communicate with Sample-X")
(choices "Yes" "No")
(default 0)
)
)
(if #install_mx
(if (exists "DEVS:midi" (noreq) )
; in future, check for newer version of xphantom
(run "copy drivers/xphantom DEVS:midi" )
(abort "the DEVS:midi drawer does not exist. Music-X is not installed on this system\n")
)
)
; change Music-X tooltype
(set #install_mx
(askbool
(prompt "Do you wish to change MIDIPORT tooltype for Music-X?")
(help "Music-X needs to know the various ports to which it can send MIDI data.")
(choices "Yes" "No")
(default 0)
)
)
(if #install_mx
(
(set #mxfile
(askfile
(prompt "Please select the Music-X executable file")
(default "Work:")
(help "Since the installer program does not know where Music-X is kept, the user must specify it. This is required so that the MIDIPORT tooltype of Music-X can be changed")
)
)
(tooltype
(prompt "Changing one Music-X tooltype to read\n\nMIDIPORTS=internal,1A|xphantom,2A\n\nIf you are using other serial ports, please see the Sample-X documentation")